import request from '@/utils/request'

// 查询会员用户列表
export function listAVipUser(query) {
  return request({
    url: '/gf/aVipUser/list',
    method: 'get',
    params: query
  })
}

// 查询会员用户详细
export function getAVipUser(id) {
  return request({
    url: '/gf/aVipUser/' + id,
    method: 'get'
  })
}

// 新增会员用户
export function addAVipUser(data) {
  return request({
    url: '/gf/aVipUser',
    method: 'post',
    data: data
  })
}

// 修改会员用户
export function updateAVipUser(data) {
  return request({
    url: '/gf/aVipUser',
    method: 'put',
    data: data
  })
}

// 删除会员用户
export function delAVipUser(id) {
  return request({
    url: '/gf/aVipUser/' + id,
    method: 'delete'
  })
}

// 逻辑删除会员用户
export function logicDelAVipUser(id) {
  return request({
    url: '/gf/aVipUser/logicDel/' + id,
    method: 'delete'
  })
}
